package base;

import android.support.v4.app.Fragment;


/**
 * by BF00233 on 2018/12/17.
 */
public class BaseFragment extends Fragment {

    protected void showProgressDialog() {
        if(getActivity() instanceof BaseActivity){
            ((BaseActivity) getActivity()).showProgressDialog();
        }
    }

    protected void dismissProgressDialog() {
        if(getActivity() instanceof BaseActivity){
            ((BaseActivity) getActivity()).dismissProgressDialog();
        }
    }

}
